<%@ page pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<jsp:include page="../common/top.jsp"></jsp:include>
<jsp:include page="../common/leftmenu.jsp"></jsp:include>


<div class="fr" style="width: 780px">
	<div class="box_title">
		<i class="fa fa-table"></i>待评价的事件
	</div>
	<div class="box-content nopadding">
		<table class="table table-hover table-nomargin">
			<thead>
				<tr>
					<th style="width:40px">优先级</th>
					<th style="width:90px">编号</th>
					<th style="width:280px">标题</th>
					<th style="width:60px">处理状态</th>
					<th style="width:110px">完工时间</th>
					<th style="width:90px">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="incident" items="${incidents }">
					<tr>
						<td><c:choose>
								<c:when test="${'一级' eq incident.priorityName }">
									<img src="img/incident/p1.png"
										title="${incident.priorityName }">
								</c:when>

								<c:when test="${'二级' eq incident.priorityName }">
									<img src="img/incident/p1.png"
										title="${incident.priorityName }">
								</c:when>
								<c:when test="${'三级' eq incident.priorityName }">
									<img src="img/incident/p1.png"
										title="${incident.priorityName }">
								</c:when>
								<c:when test="${'四级' eq incident.priorityName }">
									<img src="img/incident/p1.png"
										title="${incident.priorityName }">
								</c:when>
								<c:when test="${'五级' eq incident.priorityName }">
									<img src="img/incident/p1.png"
										title="${incident.priorityName }">
								</c:when>
								<c:otherwise>
									<img src="img/incident/p0.png" title="未确定级别">
								</c:otherwise>
							</c:choose></td>
						<td>${incident.code }</td>
						<td><a class="ui-link-inherit" target="_blank"
							href="customer/help/incident/incidentDispaly?id=${incident.id }"><c:choose>
									<c:when test="${fn:length(incident.title) > 22}">
										<c:out value="${fn:substring(incident.title, 0, 22)}..." />
									</c:when>
									<c:otherwise>
										<c:out value="${incident.title}" />
									</c:otherwise>
								</c:choose> </a>
						</td>
						<td>${incident.status }</td>
						<td><fmt:formatDate value="${incident.solvedDate }"
								pattern="yyyy-MM-dd" />
						</td>

						<td><a class="ui-link-inherit"
							href="customer/help/incident/userSatisfaction?id=${incident.id }">评价</a>
							<a class="ui-link-inherit" target="_blank"
							href="customer/help/incident/incidentInfo?id=${incident.id }">跟踪</a>

						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</div>



<jsp:include page="../common/bottom.jsp"></jsp:include>